<!--{include(pe_tpl('header.html'));}-->
<div class="right">
	<div class="now">
		<a href="admin.php?mod=cashout" <!--{if(!$_g_state):}-->class="sel"<!--{endif;}-->>等待结算（{$tongji[0]}）</a>
		<a href="admin.php?mod=cashout&state=1" <!--{if($_g_state==1):}-->class="sel"<!--{endif;}-->>已结算（{$tongji[1]}）</a>
		<a href="admin.php?mod=cashout&state=2" <!--{if($_g_state==2):}-->class="sel"<!--{endif;}-->>已取消（{$tongji[2]}）</a>
		<div class="clear"></div>
	</div>
	<div class="right_main">
		<div class="search">
			<form method="get">
				<input type="hidden" name="mod" value="{$_g_mod}" />
				<input type="hidden" name="state" value="{$_g_state}" />
				用户名：<input type="text" name="name" value="{$_g_name}" class="inputtext input100" />
				收款人：<input type="text" name="banktname" value="{$_g_banktname}" class="inputtext input100" />
				收款帐号：<input type="text" name="banknum" value="{$_g_banknum}" class="inputtext input200" />
				<select name="bankname" class="selectmini">
				<option value="" href="{pe_updateurl('bankname', '')}">= 账户类型 =</option>
				<!--{foreach($ini['userbank_type'] as $k=>$v):}-->
				<option value="{$v}" href="{pe_updateurl('bankname', $v)}" <!--{if($_g_bankname==$v):}-->selected="selected"<!--{endif;}-->>[<!--{echo ++$kkk}-->]{$v}</option>
				<!--{endforeach;}-->
				</select>
				<input type="submit" value="搜索" class="input_btn" />
			</form>
		</div>
		<form method="post" id="form">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
		<tr>
			<th class="bgtt" width="20"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'cashout_id')" /></th>
			<th class="bgtt" width="120">申请日期</th>
			<th class="bgtt" width="130">用户名</th>
			<th class="bgtt" width="100">提现金额</th>
			<th class="bgtt" width="60">手续费</th>
			<th class="bgtt">收款账户</th>
			<th class="bgtt" width="120">用户IP</th>
			<th class="bgtt" width="100">处理日期</th>
			<th class="bgtt" width="110">结算状态</th>
		</tr>
		<!--{foreach($info_list as $v):}-->
		<tr>
			<td><input type="checkbox" name="cashout_id[]" value="{$v['cashout_id']}"></td>
			<td>{pe_date($v['cashout_atime'])}</td>
			<td>{$v['user_name']}</td>
			<td><strong class="num corg">{$v['cashout_money']}</strong></td>
			<td><span class="num">{$v['cashout_fee']}</span></td>
			<td class="aleft" valign="top" style="padding:5px;color:#555">
				<p>【名称】{$v['cashout_bankname']}<!--{if($v['cashout_bankaddress']):}--><span class="c888">({$v['cashout_bankaddress']})</span><!--{endif;}--></p>
				<p>【帐号】{$v['cashout_banknum']}<!--{if($v['cashout_banktname']):}--><span class="c888">({$v['cashout_banktname']})</span><!--{endif;}--></p>
			</td>
			<td>{$v['cashout_ip']}</td>
			<td>{pe_date($v['cashout_ptime'], 'm-d H:i')}</td>
			<td>
				<!--{if($v['cashout_state'] == 1):}-->
				<img src="{$pe['host_tpl']}images/dui.png" />
				<!--{elseif($v['cashout_state'] == 2):}-->
				<img src="{$pe['host_tpl']}images/cuo.png" />
				<!--{else:}-->
				<a href="admin.php?mod=cashout&act=state&id={$v['cashout_id']}" class="admin_edit mar3" onclick="return pe_cfone(this, '结算完成')">通过</a>
				<a href="admin.php?mod=cashout&act=del&id={$v['cashout_id']}" class="admin_del" onclick="return pe_cfone(this, '取消')">取消</a>
				<!--{endif;}-->
			</td>
		</tr>
		<!--{endforeach;}-->
		</table>
		</form>
	</div>
	<div class="right_bottom">
		<span class="fl mal10">
			<input type="checkbox" name="checkall" onclick="pe_checkall(this, 'cashout_id')" />
			<button href="admin.php?mod=cashout&act=state" onclick="return pe_cfall(this, 'cashout_id', 'form', '批量通过')">批量通过</button>
		</span>
		<span class="fr fenye">{$db->page->html}</span>
		<div class="clear"></div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$("select").change(function(){
		window.location.href = 'admin.php' + $(this).find("option:selected").attr("href");
	})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->